$(function(){
  var e=$(".main");
  return new Handsontable(e.get(0),{
    data:[
        ["Java","1","降","-0.01%"],
        ["C","2","升","+2.44%"],
        ["Python","3","升","+1.41%"],
        ["C++","4","降","-2.58%"],
        ["C#","5","升","+2.07%"],
        ["Visual Basic .NET","5","降","-1.17%"],
        ["JavaScript","7","降","-0.85%"]
    ],
    colWidths:150, //设置列宽
    rowHeights:45,  //设置行高
    //设置内容居中
    className:'htCenter htMiddle',
    //设置表头
    colHeaders:["语言名称","排名","升或降","变化幅度"]
  })
});